﻿/*------------------------------------------------
// File Description: WmsInboundTaskItem DataBase Entity
// Author:			 Lang
// Create Time:		 2021/10/14 16:32:02
//------------------------------------------------*/

using System;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace IOA.MES.DataAccess.Entity
{
    /// <summary>
    /// WMS入库任务对象
    /// </summary>
    [Table(nameof(WmsInboundTaskItem))]
    public class WmsInboundTaskItem : BaseEntity
    {
        private string _inboundNo = string.Empty;
        private string _workshopCode = string.Empty;
        private string _workshopName = string.Empty;
        private string _orderNo = string.Empty;
        private string _workOrderNo = string.Empty;
        private string _packNo = string.Empty;
        private string _barCode = string.Empty;
        private string _productCode = string.Empty;
        private string _productName = string.Empty;
        private string _unit = string.Empty;
        private string _contractNo = string.Empty;
        private string _qLevel = string.Empty;
        private string _frameColor = string.Empty;
        private string _junBoxFactory = string.Empty;
        private string _lineLength = string.Empty;
        private string _screenGraphics = string.Empty;
        private string _cellType = string.Empty;
        private string _currentLevel = string.Empty;
        private string _longFrameSize = string.Empty;
        private string _shortFrameSize = string.Empty;
        private string _backPlanColor = string.Empty;
        private string _junBoxSpecs = string.Empty;
        private string _cellColor = string.Empty;
        private string _solarModel = string.Empty;
        private string _projectName = string.Empty;
        private string _vm = string.Empty;
        private string _im = string.Empty;
        private string _cellFactory = string.Empty;
        private string _backPlanType = string.Empty;
        private string _silicagelColor = string.Empty;
        private string _glassType = string.Empty;

        #region Public Property

        ///<Summary>
        /// InboundNo
        ///</Summary>
        public string InboundNo
        {
            get { return string.IsNullOrWhiteSpace(_inboundNo) ? string.Empty : _inboundNo; }
            set { _inboundNo = value; }
        }

        ///<Summary>
        /// WorkshopCode
        ///</Summary>
        public string WorkshopCode
        {
            get { return string.IsNullOrWhiteSpace(_workshopCode) ? string.Empty : _workshopCode; }
            set { _workshopCode = value; }
        }

        ///<Summary>
        /// WorkshopName
        ///</Summary>
        public string WorkshopName
        {
            get { return string.IsNullOrWhiteSpace(_workshopName) ? string.Empty : _workshopName; }
            set { _workshopName = value; }
        }

        ///<Summary>
        /// OrderNo
        ///</Summary>
        public string OrderNo
        {
            get { return string.IsNullOrWhiteSpace(_orderNo) ? string.Empty : _orderNo; }
            set { _orderNo = value; }
        }

        ///<Summary>
        /// WorkOrderNo
        ///</Summary>
        public string WorkOrderNo
        {
            get { return string.IsNullOrWhiteSpace(_workOrderNo) ? string.Empty : _workOrderNo; }
            set { _workOrderNo = value; }
        }

        ///<Summary>
        /// RowNo
        ///</Summary>
        public int RowNo { get; set; }

        ///<Summary>
        /// PackNo
        ///</Summary>
        public string PackNo
        {
            get { return string.IsNullOrWhiteSpace(_packNo) ? string.Empty : _packNo; }
            set { _packNo = value; }
        }

        ///<Summary>
        /// BarCode
        ///</Summary>
        public string BarCode
        {
            get { return string.IsNullOrWhiteSpace(_barCode) ? string.Empty : _barCode; }
            set { _barCode = value; }
        }

        ///<Summary>
        /// ProductCode
        ///</Summary>
        public string ProductCode
        {
            get { return string.IsNullOrWhiteSpace(_productCode) ? string.Empty : _productCode; }
            set { _productCode = value; }
        }

        ///<Summary>
        /// ProductName
        ///</Summary>
        public string ProductName
        {
            get { return string.IsNullOrWhiteSpace(_productName) ? string.Empty : _productName; }
            set { _productName = value; }
        }

        ///<Summary>
        /// Unit
        ///</Summary>
        public string Unit
        {
            get { return string.IsNullOrWhiteSpace(_unit) ? string.Empty : _unit; }
            set { _unit = value; }
        }

        ///<Summary>
        /// PackTime
        ///</Summary>
        public DateTime PackTime { get; set; }

        ///<Summary>
        /// CabinetTime
        ///</Summary>
        public DateTime CabinetTime { get; set; }

        ///<Summary>
        /// ContractNo
        ///</Summary>
        public string ContractNo
        {
            get { return string.IsNullOrWhiteSpace(_contractNo) ? string.Empty : _contractNo; }
            set { _contractNo = value; }
        }

        ///<Summary>
        /// QLevel
        ///</Summary>
        public string QLevel
        {
            get { return string.IsNullOrWhiteSpace(_qLevel) ? string.Empty : _qLevel; }
            set { _qLevel = value; }
        }

        ///<Summary>
        /// PowerLevel
        ///</Summary>
        public decimal PowerLevel { get; set; }

        ///<Summary>
        /// FrameColor
        ///</Summary>
        public string FrameColor
        {
            get { return string.IsNullOrWhiteSpace(_frameColor) ? string.Empty : _frameColor; }
            set { _frameColor = value; }
        }

        ///<Summary>
        /// JunBoxFactory
        ///</Summary>
        public string JunBoxFactory
        {
            get { return string.IsNullOrWhiteSpace(_junBoxFactory) ? string.Empty : _junBoxFactory; }
            set { _junBoxFactory = value; }
        }

        ///<Summary>
        /// LineLength
        ///</Summary>
        public string LineLength
        {
            get { return string.IsNullOrWhiteSpace(_lineLength) ? string.Empty : _lineLength; }
            set { _lineLength = value; }
        }

        ///<Summary>
        /// ScreenGraphics
        ///</Summary>
        public string ScreenGraphics
        {
            get { return string.IsNullOrWhiteSpace(_screenGraphics) ? string.Empty : _screenGraphics; }
            set { _screenGraphics = value; }
        }

        ///<Summary>
        /// CellType
        ///</Summary>
        public string CellType
        {
            get { return string.IsNullOrWhiteSpace(_cellType) ? string.Empty : _cellType; }
            set { _cellType = value; }
        }

        ///<Summary>
        /// CellType
        ///</Summary>
        public string CellFactory
        {
            get { return string.IsNullOrWhiteSpace(_cellFactory) ? string.Empty : _cellFactory; }
            set { _cellFactory = value; }
        }

        ///<Summary>
        /// CurrentLevel
        ///</Summary>
        public string CurrentLevel
        {
            get { return string.IsNullOrWhiteSpace(_currentLevel) ? string.Empty : _currentLevel; }
            set { _currentLevel = value; }
        }

        ///<Summary>
        /// LongFrameSize
        ///</Summary>
        public string FrameSize
        {
            get { return string.IsNullOrWhiteSpace(_longFrameSize) ? string.Empty : _longFrameSize; }
            set { _longFrameSize = value; }
        }

        ///<Summary>
        /// ShortFrameSize
        ///</Summary>
        public string ShortFrameSize
        {
            get { return string.IsNullOrWhiteSpace(_shortFrameSize) ? string.Empty : _shortFrameSize; }
            set { _shortFrameSize = value; }
        }

        ///<Summary>
        /// BackPlanType
        ///</Summary>
        public string BackPlanType
        {
            get { return string.IsNullOrWhiteSpace(_backPlanType) ? string.Empty : _backPlanType; }
            set { _backPlanType = value; }
        }

        ///<Summary>
        /// BackPlanColor
        ///</Summary>
        public string BackPlanColor
        {
            get { return string.IsNullOrWhiteSpace(_backPlanColor) ? string.Empty : _backPlanColor; }
            set { _backPlanColor = value; }
        }

        ///<Summary>
        /// JunBoxSpecs
        ///</Summary>
        public string JunBoxSpecs
        {
            get { return string.IsNullOrWhiteSpace(_junBoxSpecs) ? string.Empty : _junBoxSpecs; }
            set { _junBoxSpecs = value; }
        }

        ///<Summary>
        /// CellColor
        ///</Summary>
        public string CellColor
        {
            get { return string.IsNullOrWhiteSpace(_cellColor) ? string.Empty : _cellColor; }
            set { _cellColor = value; }
        }

        ///<Summary>
        /// SolarModel
        ///</Summary>
        public string SolarModel
        {
            get { return string.IsNullOrWhiteSpace(_solarModel) ? string.Empty : _solarModel; }
            set { _solarModel = value; }
        }

        ///<Summary>
        /// SilicagelColor
        ///</Summary>
        public string SilicagelColor
        {
            get { return string.IsNullOrWhiteSpace(_silicagelColor) ? string.Empty : _silicagelColor; }
            set { _silicagelColor = value; }
        }

        ///<Summary>
        /// NeedSupervision
        ///</Summary>
        public bool NeedSupervision { get; set; }

        ///<Summary>
        /// ProjectName
        ///</Summary>
        public string ProjectName
        {
            get { return string.IsNullOrWhiteSpace(_projectName) ? string.Empty : _projectName; }
            set { _projectName = value; }
        }

        ///<Summary>
        /// GlassType
        ///</Summary>
        public string GlassType
        {
            get { return string.IsNullOrWhiteSpace(_glassType) ? string.Empty : _glassType; }
            set { _glassType = value; }
        }

        ///<Summary>
        /// ComponentType
        ///</Summary>
        public Enum.ComponentType? ComponentType { get; set; }

        ///<Summary>
        /// Quantity
        ///</Summary>
        public int Quantity { get; set; }

        ///<Summary>
        /// NetWeight
        ///</Summary>
        public decimal? NetWeight { get; set; }

        /// <summary>
        /// 开路电压
        /// </summary>
        public decimal? Voc { get; set; }

        /// <summary>
        /// 短路电流
        /// </summary>
        public decimal? Isc { get; set; }

        ///<Summary>
        /// 工作电压
        ///</Summary>
        public decimal? Vm { get; set; }

        ///<Summary>
        /// 工作电流
        ///</Summary>
        public decimal? Im { get; set; }

        ///<Summary>
        /// 最大功率
        ///</Summary>
        public decimal? Pmax { get; set; }

        ///<Summary>
        /// 填充因子
        ///</Summary>
        public decimal? FF { get; set; }
        #endregion
    }

    public partial class MESContext
    {
        /// <summary>
        /// 
        /// </summary>
        public virtual DbSet<WmsInboundTaskItem> WmsInboundTaskItems { get; set; }
    }
}